﻿
function drop_mouseover(pos) {
    try { window.clearTimeout(timer); } catch (e) { }
}
function drop_mouseout(pos) {
    var posSel = document.getElementById(pos + "Sel").style.display;
    if (posSel == "block") {
        timer = setTimeout("drop_hide('" + pos + "')", 1000);
    }
}
function drop_hide(pos) {
    document.getElementById(pos + "Sel").style.display = "none";
}
function search_show(pos, searchType, href) {
    document.getElementById(pos + "Slected").innerHTML = href.innerHTML;
    document.getElementById(pos + 'q').focus();
    var sE = document.getElementById("searchExtend");
    if (sE != undefined && searchType == "bar") {
        sE.style.display = "block";
    } else if (sE != undefined) {
        sE.style.display = "none";
    }
    try { window.clearTimeout(timer); } catch (e) { }
    return false;
}
function senfe(o, a, b, c, d) {
    var t = document.getElementById(o).getElementsByTagName("tr");
    for (var i = 0; i < t.length - 1; i++) {
        t[i].style.backgroundColor = (t[i].sectionRowIndex % 2 == 0) ? a : b;
        t[i].onclick = function () {
            if (this.x != "1") {
                this.x = "1";
                this.style.backgroundColor = d;
            } else {
                this.x = "0";
                this.style.backgroundColor = (this.sectionRowIndex % 2 == 0) ? a : b;
            }
        }
        t[i].onmouseover = function () {
            if (this.x != "1") this.style.backgroundColor = c;
        }
        t[i].onmouseout = function () {
            if (this.x != "1") this.style.backgroundColor = (this.sectionRowIndex % 2 == 0) ? a : b;
        }
    }
}